package com.taomeishu.mailcrazy.fetch.policy;


public class FixedTimeDelayPolicy implements DelayPolicy {

	private int timeInSeconds = 1;
	
	public FixedTimeDelayPolicy(int timeInSeconds) {
		super();
		this.timeInSeconds = timeInSeconds;
	}

	@Override
	public void sleepForDelay() throws InterruptedException {
		Thread.sleep(timeInSeconds * 1000);
	}

}
